package com.fjb.pojo.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 商品留言表
 * </p>
 *
 * @author hemiao
 * @since 2020-02-24
 */
public class ProductLeaveMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer productId;

    private Integer productUserId;

    private Integer parentId;

    private String parentIds;

    /**
     * 留言顺序  越小越靠前  默认1
     */
    private Integer msgSort;

    /**
     * 1、留言   2、回复  
     */
    private Integer msgType;

    /**
     * 留言内容  限制60个字
     */
    private String msgContents;

    /**
     * 留言文件 多个逗号分隔
     */
    private String msgFiles;

    private Integer msgUserId;

    private Integer createUserId;

    private LocalDateTime createTime;

    /**
     * data_source
     */
    private String dataSource;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }
    public Integer getProductUserId() {
        return productUserId;
    }

    public void setProductUserId(Integer productUserId) {
        this.productUserId = productUserId;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }
    public Integer getMsgSort() {
        return msgSort;
    }

    public void setMsgSort(Integer msgSort) {
        this.msgSort = msgSort;
    }
    public Integer getMsgType() {
        return msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }
    public String getMsgContents() {
        return msgContents;
    }

    public void setMsgContents(String msgContents) {
        this.msgContents = msgContents;
    }
    public String getMsgFiles() {
        return msgFiles;
    }

    public void setMsgFiles(String msgFiles) {
        this.msgFiles = msgFiles;
    }
    public Integer getMsgUserId() {
        return msgUserId;
    }

    public void setMsgUserId(Integer msgUserId) {
        this.msgUserId = msgUserId;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    @Override
    public String toString() {
        return "ProductLeaveMsg{" +
        "id=" + id +
        ", productId=" + productId +
        ", productUserId=" + productUserId +
        ", parentId=" + parentId +
        ", parentIds=" + parentIds +
        ", msgSort=" + msgSort +
        ", msgType=" + msgType +
        ", msgContents=" + msgContents +
        ", msgFiles=" + msgFiles +
        ", msgUserId=" + msgUserId +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", dataSource=" + dataSource +
        "}";
    }
}
